import request from '@/utils/request'


export default {

    //分页查询医院设置
    getHospSetList(current, limit, searchObj) {
        return request({
            url: `/admin/hosp/hospitalSet/pageCondition/${current}/${limit}`,
            method: 'post',
            data: searchObj  //使用json
        })
    },
    //删除医院设置
    deleteHospSet(id) {
        return request({
            url: `/admin/hosp/hospitalSet/removeById/${id}`,
            method: 'delete'
        })
    },
    //批量删除
    batchRemoveHospSet(idList) {
        return request({
            url: `/admin/hosp/hospitalSet/deleteBatchHospitalSet`,
            method: 'delete',
            data: idList
        })
    },
    //锁定和取消锁定
    lockHospSet(id, status) {
        return request({
            url: `/admin/hosp/hospitalSet/HospitalSetStatus/${id}/${status}`,
            method: 'put',
        })
    },
    //添加医院设置
    saveHospSet(hospitalSet) {
        return request({
            url: `/admin/hosp/hospitalSet/addHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    },
    //医院设置id查询
    getHospSet(id) {
        return request({
            url: `/admin/hosp/hospitalSet/getHospitalSetById/${id}`,
            method: 'get'
        })
    },
    //修改医院设置
    updateHospSet(hospitalSet) {
        return request({
            url: `/admin/hosp/hospitalSet/updateHospital`,
            method: 'post',
            data: hospitalSet
        })
    },
}